package com.cyzy.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_coupons")
public class UserCoupons {
  @TableId(type = IdType.ASSIGN_ID)
  private long id;
  private long userId;
  private long templateId;
  private long status;
  private java.sql.Timestamp receiveTime;
  private java.sql.Timestamp expireTime;
  private java.sql.Timestamp useTime;
  private long orderId;

//  private long templateId;
  @TableField(exist = false)
  private long couponType;
  @TableField(exist = false)
  private String couponName;
  @TableField(exist = false)
  private long discountRate;
  @TableField(exist = false)
  private long maxDiscount;
  @TableField(exist = false)
  private long minAmount;
  @TableField(exist = false)
  private long deductAmount;
  @TableField(exist = false)
  private String applicableIds;
  @TableField(exist = false)
  private String conditionDesc;
  @TableField(exist = false)
  private long totalCount;
  @TableField(exist = false)
  private long remainingCount;
  @TableField(exist = false)
  private long validDays;
  @TableField(exist = false)
  private java.sql.Timestamp createTime;
  @TableField(exist = false)
  private java.sql.Timestamp updateTime;
//  private long status;
  @TableField(exist = false)
  private long applicableScope;

}
